#include <stdio.h>
int get_config(char item[4][128], char port_name[4][128])
{
	FILE* fd  = fopen("./config.txt","r+");

	int i = 0;
	while(1)
	{
		if(fscanf(fd,"%s %s",item[i], port_name[i]) > 0)
		{
			printf("%s %s\n", item[i], port_name[i]);
			i++;
		}
		else
		{
			break ;
		}
	}
	fclose(fd);
	return i;
}
